<!DOCTYPE html>
<html>
<head>
<title>Home Search - Home Finders Inc.</title>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>

<link rel="stylesheet" href="http://cdn2.editmysite.com/css/sites.css?buildTime=1364422852" type="text/css" /><link rel='stylesheet' type='text/css' href='http://cdn1.editmysite.com/editor/libraries/fancybox/fancybox.css?1364422852' />
<link rel='stylesheet' href='http://cdn1.editmysite.com/editor/images/common/common-v2.css?buildTime=1364422852' type='text/css' />
<link rel='stylesheet' type='text/css' href='files/main_style.css?1364791990' title='wsite-theme-css' />
<link href='http://fonts.googleapis.com/css?family=Rokkitt:400,700' rel='stylesheet' type='text/css' />
<link href='http://fonts.googleapis.com/css?family=Lato:400,300,300italic,700,400italic,700italic' rel='stylesheet' type='text/css' />
<link href='http://fonts.googleapis.com/css?family=Brawler' rel='stylesheet' type='text/css' />
<link href='http://cdn1.editmysite.com/editor/fonts/Lilly/font.css?2' rel='stylesheet' type='text/css' />
<style type='text/css'>
.wsite-elements div.paragraph, .wsite-elements p, .wsite-elements .product-block .product-title, .wsite-elements .product-description, .wsite-elements .wsite-form-field label, .wsite-elements .wsite-form-field label, #wsite-content div.paragraph, #wsite-content p, #wsite-content .product-block .product-title, #wsite-content .product-description, #wsite-content .wsite-form-field label, #wsite-content .wsite-form-field label, .blog-sidebar div.paragraph, .blog-sidebar p, .blog-sidebar .wsite-form-field label, .blog-sidebar .wsite-form-field label {}
#wsite-content div.paragraph, #wsite-content p, #wsite-content .product-block .product-title, #wsite-content .product-description, #wsite-content .wsite-form-field label, #wsite-content .wsite-form-field label, .blog-sidebar div.paragraph, .blog-sidebar p, .blog-sidebar .wsite-form-field label, .blog-sidebar .wsite-form-field label {}
.wsite-elements h2, .wsite-elements .product-long .product-title, .wsite-elements .product-large .product-title, .wsite-elements .product-small .product-title, #wsite-content h2, #wsite-content .product-long .product-title, #wsite-content .product-large .product-title, #wsite-content .product-small .product-title, .blog-sidebar h2 {}
#wsite-content h2, #wsite-content .product-long .product-title, #wsite-content .product-large .product-title, #wsite-content .product-small .product-title, .blog-sidebar h2 {}
#wsite-title {font-family:'Lilly' !important;color:#FFFFFF !important;}
</style>
<style type='text/css'>
.wsite-header {
	background-image: url(uploads/1/8/9/3/18938997/header_images/1364786340.jpg) !important;
	background-position: 0 0 !important;
}
</style>
    <style type="text/css">
      #map {
       position : relative;
      
        height: 408px;
        width: 603px;
        border: 1px solid #333;
        margin-right: 150%;
      
        left: 1px;
      }
       .table{
       position :relative;
	   width:885px;
	   hight:400px;
      }
      

   
    </style>
<script type='text/javascript'><!--
var STATIC_BASE = 'http://cdn1.editmysite.com/';
var STYLE_PREFIX = 'wsite';
//-->
</script>
<script type='text/javascript' src='https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js'></script>
<script type='text/javascript' src='http://cdn1.editmysite.com/editor/libraries/jquery_effects.js?1364422852'></script>
<script type='text/javascript' src='http://cdn1.editmysite.com/editor/libraries/jquery.animate.js?1364422852'></script>
<script type='text/javascript' src='http://cdn1.editmysite.com/editor/libraries/fancybox/fancybox.min.js?1364422852'></script>
<script type='text/javascript' src='http://cdn1.editmysite.com/editor/images/common/utilities-jq.js?1364422852'></script>
<script type='text/javascript' src='http://cdn1.editmysite.com/editor/libraries/flyout_menus_jq.js?1364422852'></script>
<script type='text/javascript'><!--
var IS_ARCHIVE=1;
(function(jQuery){
function initFlyouts(){initPublishedFlyoutMenus([{"id":"478103003557920423","title":"Home","url":"index.html"},{"id":"998815942219988486","title":"Home Search","url":"home-search.html"},{"id":"911831133413668938","title":"Roommate Finder","url":"roommate-finder.html"},{"id":"627786082162850400","title":"Contact Us","url":"contact-us.html"},{"id":"886379658705634316","title":"About Us","url":"about-us.html"}],'998815942219988486',"<li class='wsite-nav-more'><a href='#'>more...<\/a><\/li>",'active',false)}
if (jQuery) {
if (jQuery.browser.msie) window.onload = initFlyouts;
else jQuery(initFlyouts)
}else{
if (Prototype.Browser.IE) window.onload = initFlyouts;
else document.observe('dom:loaded', initFlyouts);
}
})(window._W && _W.jQuery)
//-->
</script>
<script type="text/javascript" src="scripts/jquery-1.7.2.js"></script>
<script src="https://maps.googleapis.com/maps/api/js?v=3.exp&key=AIzaSyDY0kkJiTPVd2U7aTOAwhc9ySH6oHxOIYM&sensor=true&libraries=places"></script>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js"></script> 
<script type="text/javascript" src="http://oauth.googlecode.com/svn/code/javascript/oauth.js"></script>
<script type="text/javascript" src="http://oauth.googlecode.com/svn/code/javascript/sha1.js"></script>
<script type="text/javascript" src="https://raw.github.com/padolsey/prettyPrint.js/master/prettyprint.js"></script>
 <script>
      var map;
      var infowindow;

      function initialize() {
        var pyrmont = new google.maps.LatLng(41.8675284567608,-87.6269472413302);
        geocoder = new google.maps.Geocoder();
        var input = document.getElementById('address');
        var input1 = document.getElementById('fav_address');
        //var input2 = document.getElementById('city1');
        
        var options = {
          //types: ['(cities)'],
          componentRestrictions: {country: 'Usa'}
        };
        
        var options1 = {
        		types: ['(cities)'],
        		 componentRestrictions: {country: 'Usa'}
        }

        autocomplete = new google.maps.places.Autocomplete(input, options);
        autocomplete1 = new google.maps.places.Autocomplete(input1, options);
        //autocomplete2 = new google.maps.places.Autocomplete(input2, options1);
        
        map = new google.maps.Map(document.getElementById('map'), {
          mapTypeId: google.maps.MapTypeId.ROADMAP,
          center: pyrmont,
          zoom: 15
        });

        
      }

      google.maps.event.addDomListener(window, 'load', initialize);
      
      function codeAddress() {
    	  //document.write("Hello World!");
          var address = document.getElementById('address').value;
          geocoder.geocode( { 'address': address}, 
        
        function(results, status)
        {
            if (status == google.maps.GeocoderStatus.OK)
            {
              map.setCenter(results[0].geometry.location);
              var marker = new google.maps.Marker({
                  map: map,
                  position: results[0].geometry.location
              } );
              
              var request = {
                      location: results[0].geometry.location,
                      radius: 1500,
                      types: ['restaurant','hospital','stores']
                    };
                    infowindow = new google.maps.InfoWindow();
                    var service = new google.maps.places.PlacesService(map);
                    service.nearbySearch(request, callback);
                    
                    function callback(results, status) {
                        if (status == google.maps.places.PlacesServiceStatus.OK) {
                          for (var i = 0; i < results.length; i++) {
                            createMarker(results[i]);
                         
                          }
                        }
                      }

                      function createMarker(place) {
                        var placeLoc = place.geometry.location;
                        var marker = new google.maps.Marker({
                          map: map,
                          position: place.geometry.location
                        });

                        google.maps.event.addListener(marker, 'click', function() {
                          infowindow.setContent(place.name);
                          infowindow.open(map, this);
                        });
                      }
              
            } else {
              alert('Geocode was not successful for the following reason: ' + status);
            }
          });
	        
        }

    		
    		function getYelpReviews()
    		{
    			var auth = { 
  		    		  //
  		    		  // Update with your auth tokens.
  		    		  //
  		    		  consumerKey: "eWJNZ5Upt3YvxZ75a29wWg", 
  		    		  consumerSecret: "E16NEWJNu8fOThAk27Y5Z61EoUs",
  		    		  accessToken: "Kbcl1sNQh79sytXcqENWBgf8frAMqnMe",
  		    		  // This example is a proof of concept, for how to use the Yelp v2 API with javascript.
  		    		  // You wouldn't actually want to expose your access token secret like this in a real application.
  		    		  accessTokenSecret: "rO47JmFUeyvcVaKf-eKGwAjO25I",
  		    		  serviceProvider: { 
  		    		    signatureMethod: "HMAC-SHA1"
  		    		  }
  		    		};

  		    		var terms = 'food';
  		    		var near = document.getElementById('address').value;
  		    		//var near = 'san+jose';
  		    		var accessor = {
  		    		  consumerSecret: auth.consumerSecret,
  		    		  tokenSecret: auth.accessTokenSecret
  		    		};

  		    		parameters = [];
  		    		parameters.push(['term', terms]);
  		    		parameters.push(['location', near]);
  		    		parameters.push(['callback', 'cb']);
  		    		parameters.push(['oauth_consumer_key', auth.consumerKey]);
  		    		parameters.push(['oauth_consumer_secret', auth.consumerSecret]);
  		    		parameters.push(['oauth_token', auth.accessToken]);
  		    		parameters.push(['oauth_signature_method', 'HMAC-SHA1']);

  		    		var message = { 
  		    		  'action': 'http://api.yelp.com/v2/search',
  		    		  'method': 'GET',
  		    		  'parameters': parameters 
  		    		};
  		    		 //var result = message.getBody();
  		    		 //alert(result);
                    //alert(message.valueOf(parameters));
  		    		OAuth.setTimestampAndNonce(message);
  		    		OAuth.SignatureMethod.sign(message, accessor);

  		    		var parameterMap = OAuth.getParameterMap(message.parameters);
  		    		parameterMap.oauth_signature = OAuth.percentEncode(parameterMap.oauth_signature)
  		    		console.log(parameterMap);
					
  		    		
  		    		$.ajax({
  		    		  'url': message.action,
  		    		  'data': parameterMap,
  		    		  'cache': true,
  		    		  'dataType': 'jsonp',
  		    		  'jsonpCallback': 'cb',
  		    		  'success': function(data, XMLHttpRequest) {
  		    		    console.log(data);
  		    		    //console.log(data.getbody());
  		    		   var output = prettyPrint(data);
  		    		   //var result = output.value(); 
  		    		//var output = data.getBody();
  		    		    $("body").append(output);
  		    		  }
  		    		}); 
    		}
    </script>  
    
    <script type = "text/javascript">
    function CallJsp()
    {
    	codeAddress();
    	document.forms[0].action = "http://localhost:8080/HomeFinders/walkscore.jsp";    // First target
        document.forms[0].target = "walkscore_result";    // Open in a iframe
        document.forms[0].submit();        // Submit the page
    	document.forms[0].action = "http://localhost:8080/HomeFinders/output.jsp";    // Second target
        document.forms[0].target = "zillow_result";    // Open in a iframe
        document.forms[0].submit();        // Submit the page
        document.forms[0].action = "http://localhost:8080/HomeFinders/weather.html";    // Second target
        document.forms[0].target = "weather_result";    // Open in a iframe
        document.forms[0].submit();        // Submit the page
        return true;
    }</script>
    
    <script type="text/javascript">
    function CallPHP()
    {
    	document.forms[0].action = "http://localhost:8888/json.php";    // First target
        document.forms[0].target = "zillow_result";    // Open in a iframe
        document.forms[0].submit();        // Submit the page
    	//document.forms[1].action = "http://localhost:8888/json.php";    // Second target
        //document.forms[1].target = "zillow_result";    // Open in a iframe
        //document.forms[1].submit();        // Submit the page
        return true;
    }
    </script>
    
</head>
<body class='wsite-theme-light tall-header-page wsite-page-home-search'>
<div id="wrapper">
	<div id="wrap">
		<div id="wrap-in">
			<div id="header-wrap">
				<div id="page">
					<div id="header-container">
						<table id="header">
							<tr>
								<td id="logo"><span class='wsite-logo'>  <img src='logo.png' style='margin-top:-8px;margin-left:2px; height :100px; width: 100px;' />
								<span id="wsite-title">Home Finders Inc.</a></span>
								</td>
								<td id="header-right">
									<table border="1">
									<!-- <div>
									<iframe name="login" height="120px" width="265px" frameborder="0" src="http://localhost:8080/HomeFinders/login.jsp" scrolling="no"></iframe>
									</div> -->
										<!--<tr>
											<td class="phone-number"></td>
											<td class="social"><div style="text-align:left;"><div style="height:0px;overflow:hidden"></div>
<span class="wsite-social wsite-social-default"></span>
<div style="height:0px;overflow:hidden"></div></div></td>
											<td class="search"></td>
										</tr>-->
									</table>
								</td>
							</tr>
						</table>
					</div>
				</div>
			</div>
			<div id="main-wrap">
				<div id="nav-wrap">
					<div id="page">
						<div id="topnav">
							<ul><li id='pg478103003557920423'><a href='index.html'>Home</a></li><li id='active'><a href='home-search.html'>Home Search</a></li><li id='pg911831133413668938'><a href='roommate-finder.html'>Roommate Finder</a></li><li id='pg627786082162850400'><a href='contact-us.html'>Contact Us</a></li><li id='pg886379658705634316'><a href='about-us.html'>About Us</a></li></ul>
							<div style="clear:both"></div>
						</div>
					</div>
				</div>
				<div id="page">
					<div id="main-bot">
						<div id="main-inner">
							<div id="main">
								<div id="banner">
									<div id="banner-outer">
										<div id="banner-inner">
										<table border = "1" class = "table">
										<tr>
										<td width = "70%" rowspan = "2"><div id="map">
											<!--  <div class="wsite-header"></div> -->											
										</div>
										</td>										
										<td height = "222px">
										<iframe name="weather_result" height="222px" width="265px" frameborder="0" src="http://localhost:8080/HomeFinders/beforesearch.html" scrolling="no"></iframe>
										</td>
										</tr>																				
										<tr>
										<td>
										<iframe name="walkscore_result" height="150px" width="265px" frameborder="0" src="http://localhost:8080/HomeFinders/beforesearch.html" scrolling="no"></iframe>
										</td>
										</tr>
										</table>
									</div>
								</div>
								<div id="content"><div id='wsite-content' class='wsite-elements wsite-not-footer'>
<h2 style="text-align:left;">Look for your new home here!<br /></h2>

<table border="1" class ="table">

<td width = "40%" >
<div>
<form method="post" action="" target="" >
  <label class="wsite-form-label" for="address">Enter the full address :<span class="form-required">*</span></label>
  <div style="clear:both;"></div>
  <div class="wsite-form-input-container wsite-form-left"><br>
    <input id="address" class="wsite-form-input wsite-input" type="text" name="address" style="width:250px;" />
  </div>
<div><br><br><br><input type="Submit" value="Get Property Info" onclick ="CallJsp()" style="top: 200 px; height: 30px; width: 150px"></div>

  <label class="wsite-form-label" for="address">Enter the address of your favorite location :<span class="form-required">*</span></label>
  <div style="clear:both;"></div>
  <div class="wsite-form-input-container wsite-form-left"><br>
    <input id="fav_address" class="wsite-form-input wsite-input" type="text" name="fav_address" style="width:250px;" />
  </div>
  <div>
  	<br><br><br><br>
  	<input type="radio" name="transit" value="walk">&nbspWalk&nbsp&nbsp&nbsp<input type="radio" name="transit" value="bike">&nbspBike&nbsp&nbsp&nbsp<input type="radio" name="transit" value="drive">&nbspDrive
  </div>
<br><input type="submit" value="Get Transit info" onclick = "CallPHP()" style="height: 30px; width: 150px">
 </form></div></td>
  
  <td>
	<iframe name="zillow_result" height="300px" width="530px" frameborder="0" src="http://localhost:8080/HomeFinders/beforesearch.html"></iframe>
 </td>
 </table>
 
  
  <!--  <input type="button" value="Yelp Reviews" onclick="getYelpReviews()" style="top: 200px"> -->
<!--  <br><br> <h3 style="text-align:left;">Check Rental Information<br /></h3>
<form method="post" action="http://localhost:8080/HomeFinders/walkscore.jsp" target="walkscore_result">
  <label class="wsite-form-label" for="address">Enter the street address :<span class="form-required">*</span></label>
  <div style="clear:both;"></div>
  <div class="wsite-form-input-container wsite-form-left">
    <input id="address1" class="wsite-form-input wsite-input" type="text" name="address1" style="width:250px;" /><br>
    
    <label class="wsite-form-label" for="address">Enter the city :<span class="form-required">*</span></label>
  <div style="clear:both;"></div>
  <div class="wsite-form-input-container wsite-form-left">
    <input id="city1" class="wsite-form-input wsite-input" type="text" name="city1" style="width:250px;" />
    
  </div>
<br>

 <br><br><input type="Submit" value="Get House Results" style="top: 200px; height: 25px; width: 150px">
  </form>  -->
	
	 
</div>
</div>

</div>


 
    
    <div class="text">

        </div>
      <pre>

      </pre>
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>
</div>
 
<div class="footer-wrap">
	<div id="page">
	  <iframe src="https://www.facebook.com/plugins/like.php?href=https://www.facebook.com/pages/Safe-Home-Finders-Inc/374331192681880"
        scrolling="no" frameborder="0" style="border:none; width:450px; height:80px"></iframe>
		<div id="footer">This website belongs to<a target="_top" href="https://www.facebook.com/pages/Safe-Home-Finders-Inc/374331192681880" title="free web site"> (c) : Home Finders Inc. </a></div>
	</div>
</div>

</body>
</html>